package com.ro.pointservice.controller;

import com.ro.commonmodule.entity.Order;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value="/point")
public class PointController {

    @GetMapping(value="/test")
    public String test(){
        return "this is a  Point-Service";
    }


    @PostMapping(value="/add")
    public String add(@RequestBody Order order)
    {
        return "this a point-service/add 222" + order.getProductName();
    }

    @PostMapping(value="/add2")
    public String add2(@RequestParam("productname") String productname)
    {
        return "this a point-service/add2  " + productname;
    }
}
